package dao;

import entity.Post;

import java.util.List;

/**
 * Created by kwp on 2017/7/13.
 */
public interface PostDao {
    public int addPost(Post post);
    public int deletePost(int postID);
    //public List queryPost(String title);
//    public List queryAllFloors(int postID);
    public int getPostID(int userID,String time);
    public List<Post> queryAllPostsByUsername(String username);
    public List<Post> queryAllCollectionsByUsername(String username);
    public List<Post> queryAllPostByCategory(String category);
}